home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / ToomyTooth.swf / scripts / frame_46 / PlaceObject2_114_16 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-05  |  915 b   |  43 lines

  1. onClipEvent(enterFrame){
  2.    if(this.hitTest(_root.Greenie1) == true)
  3.    {
  4.       tellTarget(_root.Greenie1)
  5.       {
  6.          gotoAndStop("Pop1");
  7.          play();
  8.          _root.score + 10;
  9.          this._visible = false;
  10.       }
  11.    }
  12.    else if(this.hitTest(_root.Greenie2) == true)
  13.    {
  14.       tellTarget(_root.Greenie2)
  15.       {
  16.          gotoAndStop("Pop2");
  17.          play();
  18.          this._visible = false;
  19.          _root.score += 10;
  20.       }
  21.    }
  22.    else if(this.hitTest(_root.Biter1) == true)
  23.    {
  24.       tellTarget(_root.Biter1)
  25.       {
  26.          gotoAndStop("Pop3");
  27.          play();
  28.          this._visible = false;
  29.          _root.score += 10;
  30.       }
  31.    }
  32.    else if(this.hitTest(_root.Biter2) == true)
  33.    {
  34.       tellTarget(_root.Biter2)
  35.       {
  36.          gotoAndStop("Pop4");
  37.          play();
  38.          this._visible = false;
  39.          _root.score += 10;
  40.       }
  41.    }
  42. }
  43.